package cn.yunhe.service;
/*
  运单号业务层
 */
import cn.yunhe.dao.ISendDao;
import cn.yunhe.entity.Send;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

public class ISendService {

    public Send getSendInfoBysendId(int sendId){
        SqlSession session= SqlSessionFactoryUtil.getSqlSession();
        try {
            ISendDao iSendDao=session.getMapper(ISendDao.class);
            return iSendDao.getSendInfoBysendId(sendId);
        }finally {
            session.close();
        }
    }
}
